Allow max_pages to be set to less than tot_pages
authorKeir Fraser <keir@xen.org>
Sun, 24 Oct 2010 12:13:04 +0000 (13:13 +0100)
committerKeir Fraser <keir@xen.org>
Sun, 24 Oct 2010 12:13:04 +0000 (13:13 +0100)
commitd6b5b105305dcc2c200ab82b942489902ef7dc7a
tree43d29b1e8660c9f9c6f8914844a3a781b3d3a945
parent7e6b926a17db1d63f1b8fd2745776f5369dacb4e
Allow max_pages to be set to less than tot_pages

The memory allocation code sometimes needs to enforce that a guest
that's been told to balloon down isn't going to expand further
(because it's still executing a previous balloon-up operation).  That
means being able to set the desired max_pages even before the balloon
driver has brought tot_pages down to the right level.

Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
xen/common/domctl.c